import { HTTP } from "../utils/http.js"

class WorkModel extends HTTP {
  addWork(data, _callback){
    this.request({
      url: "/usr/addUsrWorkExp",
      method: "POST",
      data: data,
      success: function (data) {
        _callback(data);
      }
    })
  }
  updateWork(data, _callback) {
    this.request({
      url: "/usr/updateUsrWorkExp",
      method: "POST",
      data: data,
      success: function (data) {
        _callback(data);
      }
    })
  }
  fetch(_callback){
    this.request({
      url: "/usr/getUsrWorkExp",
      success: function (data) {
        _callback(data);
      }
    })
  }
}

export { WorkModel }